package com.pj.compose.viewmodel

import android.bluetooth.BluetoothDevice
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class BluetoothViewModel @Inject constructor(): ViewModel() {
    val foundDevices = mutableStateListOf<BluetoothDevice>() //发现的蓝牙设备
    val boundDevices = mutableStateListOf<BluetoothDevice>() //绑定的蓝牙设备
    var isBluetoothEnabled by mutableStateOf(false)
    var contentType by mutableStateOf(0) //显示的内容类型 0,蓝牙设备列表 1.键盘鼠标设备

}